package cn.com.zsw.gblog.modules.gblog.controller;


import cn.com.zsw.gblog.modules.gblog.service.GbSocialService;
import com.baomidou.mybatisplus.extension.api.ApiController;
import com.baomidou.mybatisplus.extension.api.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (gb_social)表控制层
 *
 * @author shiwangzhou
 * @since 2020-06-24 16:50:28
 */
@RestController
@RequestMapping("blog/social")
public class GbSocialController extends ApiController {
    /**
     * 服务对象
     */
    @Resource
    private GbSocialService gbSocialService;

    @GetMapping("list")
    public R selectAll() {
        return success(this.gbSocialService.getSocialList());
    }

}